<template>
  <el-footer class="app-footer">
    <div class="footer-content">
      <div class="footer-info">
        <p class="contact">服务热线：400-XXX-XXXX</p>
        <p class="copyright">© 2024 医联智导平台 版权所有</p>
      </div>
      <div class="footer-links">
        <el-link type="info" @click="goToPage('about')">关于我们</el-link>
        <el-link type="info" @click="goToPage('privacy')">隐私政策</el-link>
        <el-link type="info" @click="goToPage('guide')">使用指南</el-link>
      </div>
    </div>
  </el-footer>
</template>

<script>
import { defineComponent } from 'vue'
import { ElFooter, ElLink } from 'element-plus'
import { useRouter } from 'vue-router'

export default defineComponent({
  name: 'AppFooter',
  components: {
    ElFooter,
    ElLink
  },
  setup() {
    const router = useRouter()
    
    const goToPage = (page) => {
      // 这里可以添加具体的页面跳转逻辑
      console.log(`跳转到${page}页面`)
    }
    
    return {
      goToPage
    }
  }
})
</script>

<style scoped>
.app-footer {
  background-color: #f5f5f5;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 20px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact, .copyright {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}
</style>